package com.huangliusong.threadcurrency.example.singleton;

/**
 * @author huangliusong
 * @since 2018/11/19
 * {@link }
 */
public class SIngletonExample2 {
    private SIngletonExample2(){

    }

    public static SIngletonExample2 get(){
        return Single.INSTANCE.getsIngletonExample2();
    }
    private enum Single{
        INSTANCE;

        private SIngletonExample2 sIngletonExample2;

        Single(){
            sIngletonExample2=new SIngletonExample2();
        }


        public SIngletonExample2 getsIngletonExample2(){
            return sIngletonExample2;
        }
    }
}
